import java.util.Scanner;
public class distance
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		double A,B,C,D;
		A = in.nextDouble();
		B = in.nextDouble();
		C = in.nextDouble();
		D = in.nextDouble();
		System.out.println("("+A+","+B+")");
		System.out.println("("+C+","+D+")");
		
		double one,two;
		one = A-C;
		System.out.println(one);
		two = Math.pow(one,2);
		System.out.println(two);
		double on,tw;
		on = B - D;

		System.out.println(on);
		tw = Math.pow(on,2);
		System.out.println(tw);
		double o ,t;
		o = two + tw;
	        
		System.out.println(o);
		
		t = Math.sqrt(o);
		System.out.println("distance:"+ t );

		
	}
}
		

